﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WaterMarkerApp
{
    public partial class IndexForm : BaseMainForm
    {
        #region private properties



        #endregion
        public IndexForm()
        {
            InitializeComponent();
        }

        #region  Events

        private void pnlMainForm_Paint(object sender, PaintEventArgs e)
        {

        }

        private void lblClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }


        private void lblNavigation_Click(object sender, EventArgs e)
        {
            Label labelControl = sender as Label;
            if (labelControl != null)
            {
                BaseMainForm oFrom = new BaseMainForm();
                switch (labelControl.Name)
                {
                    case "lblWaterMarkerAdd":
                        oFrom = new AddWaterMarker();
                        break;
                    case "lblCheckWaterMarker":
                        oFrom = new CheckWaterMarker();
                        break;
                }
                if (oFrom != null)
                {
                    oFrom.ShowDialog();
                }
            }
        }

        private void lalNavigation_MouseLeave(object sender, EventArgs e)
        {
            Label lableControl = sender as Label;
            if (lableControl != null)
            {
                switch (lableControl.Name)
                {
                    case "lblWaterMarkerAdd":
                        lblWaterMarkerAdd.Image = global::WaterMarkerApp.Properties.Resources.导航_水印添加; ;
                        break;
                    case "lblCheckWaterMarker":
                        lblCheckWaterMarker.Image = global::WaterMarkerApp.Properties.Resources.导航_水印检测;
                        break;
                }
            }
        }

        private void lblNavigation_MouseMove(object sender, MouseEventArgs e)
        {
            Label labelControl = sender as Label;
            if (labelControl != null)
            {
                switch (labelControl.Name)
                {
                    case "lblWaterMarkerAdd":
                        lblWaterMarkerAdd.Image = global::WaterMarkerApp.Properties.Resources.导航_水印添加1;
                        break;
                    case "lblCheckWaterMarker":
                        lblCheckWaterMarker.Image = global::WaterMarkerApp.Properties.Resources.导航_水印检测1;
                        break;
                }
            }
        }

        #endregion

       

        #region private methods

        #endregion
    }
}
